/**
 * Generate code from /{{projectName}}-core/src/main/java/{{packageName}}/{{apis}}/dto/{{apiDtos@DEFAULT}}.java.hbs
 */
package cn.ibizlab.api.dto;

import java.util.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.*;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户组[SysOrganizationalRoleDTO]
 *
 * @author generator
 */
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("用户组DTO")
public class SysOrganizationalRoleDTO extends DTOBase implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @JsonProperty("id")
    @JSONField(name = "id")
    @ApiModelProperty(value = "标识", position = 0)
    private String id;

    /**
     * 名称
     */
    @JsonProperty("name")
    @JSONField(name = "name")
    @ApiModelProperty(value = "名称", position = 1)
    private String name;

    /**
     * 创建人
     */
    @JsonProperty("creator")
    @JSONField(name = "creator")
    @ApiModelProperty(value = "创建人", position = 2)
    private String creator;

    /**
     * 创建时间
     */
    @JsonProperty("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @JSONField(name = "create_time" , format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", position = 3)
    private Date createTime;

    /**
     * 最后更新人
     */
    @JsonProperty("updater")
    @JSONField(name = "updater")
    @ApiModelProperty(value = "最后更新人", position = 4)
    private String updater;

    /**
     * 最后更新时间
     */
    @JsonProperty("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @JSONField(name = "update_time" , format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后更新时间", position = 5)
    private Date updateTime;

    /**
     * DC
     */
    @JsonProperty("dc")
    @JSONField(name = "dc")
    @ApiModelProperty(value = "DC", position = 6)
    private String dc;

    /**
     * 组织单元标识
     */
    @JsonProperty("organizational_unit_id")
    @JSONField(name = "organizational_unit_id")
    @ApiModelProperty(value = "组织单元标识", position = 7)
    private String organizationalUnitId;

    /**
     * 部门标识
     */
    @JsonProperty("department_id")
    @JSONField(name = "department_id")
    @ApiModelProperty(value = "部门标识", position = 8)
    private String departmentId;

    /**
     * 部门名称
     */
    @JsonProperty("department_name")
    @JSONField(name = "department_name")
    @ApiModelProperty(value = "部门名称", position = 9)
    private String departmentName;

    /**
     * 部门编号
     */
    @JsonProperty("department_number")
    @JSONField(name = "department_number")
    @ApiModelProperty(value = "部门编号", position = 10)
    private String departmentNumber;

    /**
     * 组织机构标识
     */
    @JsonProperty("organization_id")
    @JSONField(name = "organization_id")
    @ApiModelProperty(value = "组织机构标识", position = 11)
    private String organizationId;

    /**
     * 组织机构名称
     */
    @JsonProperty("organization_name")
    @JSONField(name = "organization_name")
    @ApiModelProperty(value = "组织机构名称", position = 12)
    private String organizationName;

    /**
     * 机构编号
     */
    @JsonProperty("organization_number")
    @JSONField(name = "organization_number")
    @ApiModelProperty(value = "机构编号", position = 13)
    private String organizationNumber;

    /**
     * 描述
     */
    @JsonProperty("description")
    @JSONField(name = "description")
    @ApiModelProperty(value = "描述", position = 14)
    private String description;

    /**
     * 排序
     */
    @JsonProperty("sort")
    @JSONField(name = "sort")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "排序", position = 15)
    private Long sort;

    /**
     * DN
     */
    @JsonProperty("dn")
    @JSONField(name = "dn")
    @ApiModelProperty(value = "DN", position = 16)
    private String dn;

    /**
     * 成员
     */
    @JsonProperty("member")
    @JSONField(name = "member")
    @ApiModelProperty(value = "成员", position = 17)
    private List<SysMemberDTO> member;


    /**
     * 设置 [名称]
     */
    public SysOrganizationalRoleDTO setName(String name) {
        this.name = name;
        this.modify("name", name);
        return this;
    }

    /**
     * 设置 [DC]
     */
    public SysOrganizationalRoleDTO setDc(String dc) {
        this.dc = dc;
        this.modify("dc", dc);
        return this;
    }

    /**
     * 设置 [组织单元标识]
     */
    public SysOrganizationalRoleDTO setOrganizationalUnitId(String organizationalUnitId) {
        this.organizationalUnitId = organizationalUnitId;
        this.modify("organizational_unit_id", organizationalUnitId);
        return this;
    }

    /**
     * 设置 [部门标识]
     */
    public SysOrganizationalRoleDTO setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
        this.modify("department_id", departmentId);
        return this;
    }

    /**
     * 设置 [部门名称]
     */
    public SysOrganizationalRoleDTO setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
        this.modify("department_name", departmentName);
        return this;
    }

    /**
     * 设置 [部门编号]
     */
    public SysOrganizationalRoleDTO setDepartmentNumber(String departmentNumber) {
        this.departmentNumber = departmentNumber;
        this.modify("department_number", departmentNumber);
        return this;
    }

    /**
     * 设置 [组织机构标识]
     */
    public SysOrganizationalRoleDTO setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
        this.modify("organization_id", organizationId);
        return this;
    }

    /**
     * 设置 [组织机构名称]
     */
    public SysOrganizationalRoleDTO setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
        this.modify("organization_name", organizationName);
        return this;
    }

    /**
     * 设置 [机构编号]
     */
    public SysOrganizationalRoleDTO setOrganizationNumber(String organizationNumber) {
        this.organizationNumber = organizationNumber;
        this.modify("organization_number", organizationNumber);
        return this;
    }

    /**
     * 设置 [描述]
     */
    public SysOrganizationalRoleDTO setDescription(String description) {
        this.description = description;
        this.modify("description", description);
        return this;
    }

    /**
     * 设置 [排序]
     */
    public SysOrganizationalRoleDTO setSort(Long sort) {
        this.sort = sort;
        this.modify("sort", sort);
        return this;
    }

    /**
     * 设置 [DN]
     */
    public SysOrganizationalRoleDTO setDn(String dn) {
        this.dn = dn;
        this.modify("dn", dn);
        return this;
    }

    /**
     * 设置 [成员]
     */
    public SysOrganizationalRoleDTO setMember(List<SysMemberDTO> member) {
        this.member = member;
        this.modify("member", member);
        return this;
    }


}
